package com.matt.domain.article;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.matt.commons.model.Model;

import lombok.Data;
import lombok.EqualsAndHashCode;



/**
 * 
 * 
 * @author zg
 * @email 409718109@qq.com
 * @date 2019-07-24 10:54
 */
@Entity
@Table(name = "article")
@Data
@EqualsAndHashCode(callSuper = true)
public class Article extends Model {
	@Column(columnDefinition = "varchar(100) COMMENT '文章标题'")
	private String articletitle;
	@Column(columnDefinition = "varchar(500) COMMENT '简介'")
	private String synopsis;
	@Column(columnDefinition = "varchar(32) COMMENT '文章作者'")
	private String articleauthor;
	@Column(columnDefinition = "varchar(100) COMMENT '文章关键字'")
	private String articlekeyword;
	@Column(columnDefinition = "int default 0   COMMENT '文章状态'")
	private Integer status;
	@Column(columnDefinition = "int default 0   COMMENT '是否置顶'")
	private Integer istop;
	@Column(columnDefinition = "varchar(500) COMMENT '文章封面地址'")
	private String imgUrl;
	@Column(columnDefinition = "long default 0   COMMENT '文章类别'")
	private Integer typeId;
	@Column(columnDefinition = "varchar(500) COMMENT '静态化地址'")
	private String staticsurl;
	@Column(columnDefinition = "int default 0   COMMENT '是否静态化：0 已静态化 1：未静态化'")
	private Integer staticsstate;
	@Column(columnDefinition = " datetime  COMMENT ' 创建时间' ")
	private Date created;
	@Column(columnDefinition = "varchar(32) COMMENT '创建者ID'")
	private String createuserid;
	@Column(columnDefinition = "varchar(500) COMMENT '附件路径'")
	private String accessoriesurl;
	@Column(columnDefinition = "int default 0   COMMENT '附件状态'")
	private Integer accessoriesstate;
	@Column(columnDefinition = "varchar(500) COMMENT '文件地址'")
	private String originalpath;
	@Column(columnDefinition = "varchar(500) COMMENT '文章内容'")
	private String content;
	@Column(columnDefinition = "int default 0   COMMENT '显示级别'")
	private Integer level;
	}
